package cn.sdormitory.workflow.dao;

import cn.sdormitory.workflow.entity.ViolationApply;
import cn.sdormitory.workflow.vo.NotRetrunedApplyVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ViolationApplyDao extends BaseMapper<ViolationApply> {

    IPage<ViolationApply> getApplyPage(ViolationApply vo, IPage<ViolationApply> page);

    ViolationApply getByProcessInstanceId(String processInstanceId);
    
    List<ViolationApply> getViolationStatistics(String startDate, String endDate, String sdId);
    
    List<ViolationApply> getMonthlyViolationStatistics(String accessDate, List<Long> classIds);
}
